package com.punai.customer.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.punai.common.core.page.TableDataInfo;
import com.punai.customer.domain.CusGxFee;
import com.punai.customer.domain.bo.CJFlRes;
import com.punai.customer.domain.bo.FeeLinkFeatureAndCategoryResultBo;
import com.punai.customer.domain.request.CusRewriteCodeRequest;
import com.punai.customer.domain.vo.CusFeatureStateVo;
import com.punai.customer.domain.vo.GxFeeVo;
import com.punai.standard.domain.StaGxFee;

import java.util.List;

/**
 * 工序分包费用项Service接口
 *
 * @author zxw
 * @date 2022-12-09
 */
public interface ICusGxFeeService extends IService<CusGxFee>
{
    /**
     * 查询工序分包费用项
     *
     * @param id 工序分包费用项主键
     * @return 工序分包费用项
     */
    public CusGxFee selectDmcGxFeeById(String id);

    /**
     * 查询工序分包费用项列表
     *
     * @param dmcGxFee 工序分包费用项
     * @param companyId
     * @return 工序分包费用项集合
     */
    public TableDataInfo selectDmcGxFeeList(CusGxFee dmcGxFee, Long companyId);

    /**
     * 新增工序分包费用项
     *
     * @param dmcGxFee 工序分包费用项
     * @return 结果
     */
    public int insertDmcGxFee(CusGxFee dmcGxFee);

    /**
     * 修改工序分包费用项
     *
     * @param dmcGxFee 工序分包费用项
     * @return 结果
     */
    public int updateDmcGxFee(GxFeeVo vo);

    /**
     * 批量删除工序分包费用项
     *
     * @param ids 需要删除的工序分包费用项主键集合
     * @return 结果
     */
    public int deleteDmcGxFeeByIds(String[] ids);

    /**
     * 删除工序分包费用项信息
     *
     * @param id 工序分包费用项主键
     * @return 结果
     */
    public int deleteDmcGxFeeById(String id);

    FeeLinkFeatureAndCategoryResultBo getGxFeeInfo(String id, Long companyId);

    CusRewriteCodeRequest getCodeLayout(String specId);

    int rewriteCode(CusRewriteCodeRequest codeRequest);

    public List<CusGxFee> validateCode(Long companyId,String specId);

    public StaGxFee getStaGxFeeById(String id,String specId, Long companyId);

    public List<CJFlRes>  recoverLinkCategory(String id, Long companyId);

    List<CJFlRes> getGxLinkCategory(String id, Long companyId);

    int moveToChapter(String[] ids, String chapterId);

    public CusFeatureStateVo checkFeatureDescribe(String gxId, String featureId);
}
